#include "qtanimeditor.h"
#include "QtGraphicsView.h"
#include "QtGraphicsScene.h"

#include <QtGui/QApplication>
#include <QTextCodec>

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);

	QTextCodec::setCodecForTr(QTextCodec::codecForName("gb18030"));

	QtAnimEditor w;

	QtGraphicsScene scene;
	w.connectScene(&scene);
	QtGraphicsView view(&scene, &w);
	w.setCentralWidget(&view);
	w.show();
	scene.setSceneRect(view.rect());

	return a.exec();
}
